/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ScannerParser;

import java.util.*;
/**
 *
 * @author jefoutta
 */
public class Struct extends Symbol{

    public Struct(String tname){
        this.name = tname;
        this.typeSymbol = "struct";
        SymbolTable.actualSymbolTable.addChildSymbolTable(1,this.typeSymbol+"_"+this.name);
    }

    public String toString(){
        return "Struct "+ this.name+" P"+this.position+" T"+this.width;
    }
}
